package monster.com.cvh.event;

import java.util.Observable;

/**
 * @author: pengguanming
 * @data: 2018/4/24
 * @function:抛出刷新完成度事件
 */
public class RefreshCompletedEvent extends Observable {
    private volatile static RefreshCompletedEvent instance;

    private RefreshCompletedEvent() {
    }

    public static RefreshCompletedEvent getInstance() {
        if (instance == null) {
            synchronized (RefreshCompletedEvent.class) {
                instance = new RefreshCompletedEvent();
            }
        }
        return instance;
    }

    public void onRefreshCompleted() {
        setChanged();
        notifyObservers();
    }
}
